output: pdf_document: default html_document: default
bain (Bayesian informative hypotheses evaluation) ANOVA allows you to evaluate (informative) hypotheses using the Bayes factor. A simple example would be the Bayesian evaluation of H0: m1 = m2 = m3 versus H1: m1 > m2 > m3 versus Hu: no restrictions on the three means.
When you tick model constraints a box opens in which you can specify the hypotheses you want to evaluate. You need to adhere to the following specification rules:
Place each hypothesis on a separate line.
factor.levelname
. If, for example, there is a factor age with levels y, m, o. They are reffered to using age.y
, age.m
, and age.o
, respectively.A linear combination can also be a single number.
Examples are: 3 * age.y + 5
; age.y + 2 * age.m + 3 * age.o - 2
; age.y - age.o
; and 5
.
(Linear combinations of) parameters can be constrained using <, >, and =. For example, age.y > 0
or age.y > age.m = 0
or 2 * age.y < age.m + age.o > 5
.
age.y > age.m & age.m > age.o
which is equivalent to age.y > age.m > age.o
or age.y > 0 & age.m > 0 & age.o > 0
.age.y > (age.m,age.o)
which is equivalent to age.y > age.m & age.y > age.o
.Hypotheses have to be compatible, non-redundant and possible. What these terms mean will be elaborated below.
The set of hypotheses has to be compatible. For the statistical background of this requirement see Gu, Mulder, Hoijtink (2018). Usually the sets of hypotheses specified by researchers are compatible, and if not, bain will return an error message. The following steps can be used to determine if a set of hypotheses is compatible:
1 < age.y < 3
, by an equality constraint in which the parameter involved is equated to the midpoint of the range, that is, age.y = 2
.age.y = age.m > age.o > age.a
becomes age.y = age.m = age.o = age.a
.age.y = age.m = age.o = age.a = 2
. An example of two non-compatible hypotheses is age.y = 0
and age.y > 2
because there is no solution to the equations age.y=0
and age.y=2
.Each hypothesis in a set of hypotheses has to be non-redundant. A hypothesis is redundant if it can also be specified with fewer constraints. For example, age.y = age.m & age.y > 0 & age.m > 0
is redundant because it can also be specified as age.y = age.m & age.y > 0
. bain will work correctly if hypotheses specified using only < and > are redundant. bain will return an error message if hypotheses specified using at least one = are redundant.
Each hypothesis in a set of hypotheses has to be possible. An hypothesis is impossible if estimates in agreement with the hypothesis do not exist. For example: values for age.y
in agreement with age.y = 0 & age.y > 2
do not exist. It is the responsibility of the user to ensure that the hypotheses specified are possible. If not, bain will either return an error message or render an output table containing Inf
's.
Five pieces of results are obtained after running a Bayesian ANOVA:
The table in which the Bayes facor of each hypothesis specified versus its complement (that is, not the hypothesis) is presented. This table also contains the posterior model probabilies of each hypothesis. Both for a set excluding and a set including the unconstrained hypothesis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.